<!doctype html public "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
<head>
<title>
Zapatec Utils Overview
</title>
<link rel ="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script>
function asd() {
	
		parent.document.title="zapatec-core.js Overview";
	
}
</script>
</head>
<body bgcolor="white" onload="asd();">

<!-- ========== START OF NAVBAR ========== -->
<a name="navbar_top"><!-- --></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3">
  <tr align="center" valign="top">
  
  
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
  

  <td bgcolor="#FFFFFF" class="NavBarCell1"> 	<font class="NavBarFont1">Class</font>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
  </tr>
</table>
</td>
<td bgcolor="#EEEEFF" align="right" valign="top">
<em>
<b>Zapatec Utils</b></em>
</td>
</tr>

<tr>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</font></td>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
&nbsp;&nbsp;
<script>
  <!--
  if(window==top) {
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</script>
<noscript>
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
</noscript>
</font></td>
</tr>
</table>
<!-- =========== END OF NAVBAR =========== -->

<hr>
<center>
	
	   <h2>zapatec-core.js</h2>
	
</center>

	


<h4>Summary</h4>
<p>
	
		Loads generic modules required for all widgets.

 <pre>
 Copyright (c) 2004-2009 by Zapatec, Inc.
 http://www.zapatec.com
 1700 MLK Way, Berkeley, California,
 94709, U.S.A.
 All rights reserved.
 </pre><BR/><BR/>
	
</p>

<hr>



<!-- ========== METHOD SUMMARY =========== -->

	<a name="method_summary"><!-- --></a>
	<table border="1" cellpadding="3" cellspacing="0" width="100%">
		<tr bgcolor="#CCCCFF" class="TableHeadingColor">
			<td colspan=2>
				<font size="+2">
					<b>Method Summary</b>
				</font>
			</td>
		</tr>
	
		
		   <tr bgcolor="white" class="TableRowColor">
		      <td align="right" valign="top" width="1%">
			 <font size="-1">
			    <code>static&nbsp;Object</code>
			 </font>
		      </td>
		      <td>
			 <code>
			    <b>
			       <a href="GLOBALS.html#!s!__Zapatec.zapatecPath">__Zapatec.zapatecPath</a></b>()
			 </code>
			 <br>
			 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 Path to main Zapatec script.
		      </td>
		   </tr>
		
	
	</table>
    <p>

<!-- ========== END METHOD SUMMARY =========== -->


        <pre class="sourceview"><span class="comment">/**
 * <span class="attrib">@fileoverview</span> Loads generic modules required for all widgets.
 *
 * &lt;pre&gt;
 * Copyright (c) 2004-2009 by Zapatec, Inc.
 * http://www.zapatec.com
 * 1700 MLK Way, Berkeley, California,
 * 94709, U.S.A.
 * All rights reserved.
 * &lt;/pre&gt;
 */</span>

<span class="comment">/* $Id: zapatec-core.js 15736 2009-02-06 15:29:25Z nikolai $ */</span>

<span class="reserved">if</span> (typeof Zapatec == <span class="literal">'undefined'</span>) {
	<span class="comment">/**
	 * <span class="attrib">@ignore</span> Namespace definition.
	 */</span>
	Zapatec = <span class="reserved">function</span>() {};
}

<span class="comment">/**
 * Zapatec Suite version.
 */</span>
Zapatec.version = <span class="literal">'07-02'</span>;

<span class="comment">// Init flags</span>
<span class="reserved">if</span> (typeof zapatecDoNotInclude == <span class="literal">'undefined'</span>) {
	zapatecDoNotInclude = 0;
}
<span class="reserved">if</span> (typeof zapatecDoNotLoadThemes == <span class="literal">'undefined'</span>) {
	zapatecDoNotLoadThemes = 0;
}

<span class="comment">// For backward compatibility</span>
<span class="reserved">if</span> (Zapatec.doNotInclude) {
	zapatecDoNotInclude = 1;
}

<span class="comment">// Stubs</span>
<span class="reserved">if</span> (typeof zapatecDict != <span class="literal">'function'</span>) {

	<span class="comment">/**
	 * See {<span class="attrib">@link</span> Zapatec.Dict#translate}. This function does nothing unless
	 * zpdict.js is included.
	 *
	 * <span class="attrib">@param</span> {string} sPhrase English phrase
	 * <span class="attrib">@return</span> Translation into current language or undefined in case of invalid
	 * arguments
	 * <span class="attrib">@type</span> string
	 */</span>
	zapatecTranslate =
	Zapatec.translate = <span class="reserved">function</span>(sPhrase) {
		<span class="reserved">return</span> sPhrase;
	};

	<span class="comment">/**
	 * See {<span class="attrib">@link</span> Zapatec.Dict#translateArray}. This function does nothing unless
	 * zpdict.js is included.
	 *
	 * <span class="attrib">@param</span> {object} aArray Array to translate
	 * <span class="attrib">@return</span> Translated array
	 * <span class="attrib">@type</span> object
	 */</span>
	zapatecTranslateArray =
	Zapatec.translateArray = <span class="reserved">function</span>(aArray) {
		<span class="reserved">return</span> aArray;
	};

}

<span class="comment">// Get path to main Zapatec script</span>
<span class="reserved">if</span> (typeof Zapatec.zapatecPath == <span class="literal">'undefined'</span>) {

	<span class="comment">/**
	 * Path to main Zapatec script.
	 */</span>
	Zapatec.zapatecPath = <span class="reserved">function</span>() {
		<span class="reserved">if</span> (document.documentElement) {
			<span class="comment">// Value from innerHTML doesn't contain redundant spaces and is always</span>
			<span class="comment">// inside double quotes</span>
			var aTokens = document.documentElement.innerHTML.match(
			 /&lt;script[^&gt;]+src=<span class="literal">"([^"</span>]*zapatec(-src)?\.js[^<span class="literal">"]*)"</span>/i);
			<span class="reserved">if</span> (aTokens &amp;&amp; aTokens.length &gt;= 2) {
				<span class="comment">// Get path</span>
				aTokens = aTokens[1].split(<span class="literal">'?'</span>);
				aTokens = aTokens[0].split(<span class="literal">'/'</span>);
				<span class="comment">// Remove last token</span>
				<span class="reserved">if</span> (Array.<span class="reserved">prototype</span>.pop) {
					aTokens.pop();
				} <span class="reserved">else</span> {
					<span class="comment">// IE 5</span>
					aTokens.length -= 1;
				}
				<span class="reserved">return</span> aTokens.length ? aTokens.join(<span class="literal">'/'</span>) + <span class="literal">'/'</span> : <span class="literal">''</span>;
			}
		}
		<span class="comment">// Not found</span>
		<span class="reserved">return</span> <span class="literal">''</span>;
	} ();

}
</pre>
	<hr>



<!-- ========== START OF NAVBAR ========== -->
<a name="navbar_top"><!-- --></a>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
<a name="navbar_top_firstrow"><!-- --></a>
<table border="0" cellpadding="0" cellspacing="3">
  <tr align="center" valign="top">
  
  
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
  

  <td bgcolor="#FFFFFF" class="NavBarCell1"> <font class="NavBarFont1">Class</font>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
  </tr>
</table>
</td>
<td bgcolor="#EEEEFF" align="right" valign="top"><em>
<b>Zapatec Utils</b></em>
</td>
</tr>

<tr>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</font></td>
<td bgcolor="white" class="NavBarCell2"><font size="-2">
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
&nbsp;&nbsp;
<script>
  <!--
  if(window==top) {
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</script>
<noscript>
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
</noscript>
</font></td>
</tr>
</table>
<!-- =========== END OF NAVBAR =========== -->

<hr>
<font size="-1">

</font>
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Thu May 21 12:19:24 2009</div>
</body>
</html>
